<?php
use enums\CachePrefixEnums;
if( !APP_ROOT )
	return 'Direct Access Deny!';

return new \Phalcon\Config( array(
		'aliRedisServer' => array(
				'host'       => 'r-2ze84f8f3b24ba24.redis.rds.aliyuncs.com',
				'port'       => 6379,
				'auth'     => 'bwdy029REDIS',
				'persistent' => false,
				'prefix'     => 'bwdy_'
		),
		'cacheAdapter' => 'redisCache',
		'apc' => array(
				'frontend' => array( 'lifetime' => 172800 ),
				'backend'  => array( 'prefix'   => 'bwdy_' )
		),
		'inmem'        => array( 'frontend' => array( 'lifetime' => 1800 ) ),
		'redisCache'   => array(
				'frontend' => array( 'lifetime' => 14400 ),
				'backend'  => array(
						'host'       => '10.171.123.109',
						'port'       => 6379,
						'auth'     => 'bwdy029REDIS',
						'persistent' => false,
						'index'	=> CachePrefixEnums::REDIS_DB_CACHE,
						'prefix' => 'bwdy_lct_',
						'uniqueId' => 'bwdyLCT',
				)
		),
		'htmlCache'    => array(
				'frontend' => array( 'lifetime' => 14400 ),
				'backend'  => array( 'cacheDir' => APP_ROOT . 'cache/html/' )
		)
));
